<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Document</title>
  <style>
    body {
      margin: 0;
    }

    ul {
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .header {
      width: 100%;
      overflow: hidden;
    }

    .header-left {
      float: left;
    }

    .header-left li {
      float: left;
      color: #222;
      margin: 20px 20px 0;
    }

    .header-right {
      float: right;
      height: 60px;
      line-height: 60px;
    }

    .header-right button {
      margin-right: 30px;
      outline: none;
    }

    .header-right button:first-child {
      background: #ffff;
      border: none;
    }

    .header-right button:last-child {
      color: #fff;
      background: blue;
      border: none;
      border-radius: 5px;
      padding: 5px 10px;
    }

    .logo {
      width: 270px;
      height: 130px;
      margin: 0 auto;
    }

    .logo img {
      width: 100%;
      height: 100%;
    }

    .search-box {
      position: relative;
      width: 650px;
      height: 45px;
      margin: 0 auto;
      top: 10px;
    }

    .search-box input {
      width: 500px;
      height: 45px;
      border: 2px solid #ddd;
      padding: 0;
      box-sizing: border-box;
      outline: none;
      border-top-left-radius: 10px;
      border-bottom-left-radius: 10px;
      border-right: none;
    }

    .search-box button {
      width: 150px;
      position: absolute;
      top: 0;
      right: 0;
      border: none;
      background: blue;
      height: 45px;
      color: #fff;
      font-size: 20px;
      border-top-right-radius: 10px;
      border-bottom-right-radius: 10px;
      outline: none;
    }

    .search-box .icon {
      width: 24px;
      height: 20px;
      background-image: url("./images/icon.png");
      background-repeat: no-repeat;
      background-position: 0 -50px;
      position: absolute;
      top: 50%;
      right: 170px;
      margin-top: -10px;
    }

    .hotsearch {
      position: relative;
      width: 670px;
      height: 25px;
      margin: 0 auto;
      top: 50px;
    }

    .hotsearch-right {
      width: 150px;
      position: absolute;
      top: 0;
      right: 0;
      border: none;
      color: rgb(170, 170, 170);
      background: white;
      height: 25px;
      font-size: 15px;
      outline: none;
    }

    .hotsearch-left {
      width: 150px;
      top: 0;
      right: 0;
      border: none;
      background: white;
      height: 25px;
      font-size: 15px;
      outline: none;
    }

    .hotsearch-list {
      position: relative;
      width: 600px;
      height: 200px;
      margin: auto;
      top: 60px;
    }

    .item-left {
      width: 50%;
      float: left;
    }

    .item-right {
      width: 50%;
      float: left;
    }

    .hotsearch-item-left li {
      width: 300px;
      margin: 10px;
      font-size: 14px;
    }

    .hotsearch-item-right li {
      width: 270px;
      font-size: 14px;
      margin: 10px;
    }

    .first-child-span {
      padding: 0 2px;
      color: white;
      background: #ff455b;
      border-radius: 7px;
    }

    .last-child-span {
      padding: 0 2px;
      color: white;
      background: #ff9812;
      border-radius: 7px;
    }

    .hotsearch-item-right span {
      color: #9195a3;
      padding: 10px;
    }

    .span-index1 {
      color: #fe2d46;
      padding: 10px;
    }

    .span-index2 {
      color: #ff6600;
      padding: 10px;
    }

    .span-index3 {
      color: #faa90e;
      padding: 10px;
    }
  </style>
</head>

<body>
  <!-- header -->
  <div class="header">
    <!-- header-left -->
    <ul class="header-left">
      <li>新闻</li>
      <li>hao123</li>
      <li>地图</li>
      <li>视频</li>
      <li>贴吧</li>
      <li>学术</li>
      <li>更多</li>
    </ul>
    <!-- header-right -->
    <div class="header-right">
      <button>设置</button>
      <button>登录</button>
    </div>
  </div>
  <!-- logo -->
  <div class="logo">
    <img src="../html/images/baidu.png" alt="" />
  </div>
  <!-- input -->
  <div class="search-box">
    <input type="text" />
    <button>百度一下</button>
    <div class="icon"></div>
  </div>
  <!-- hotsearch -->
  <div class="hotsearch">
    <button class="hotsearch-left">百度热搜</button>
    <button class="hotsearch-right">换一换</button>
  </div>
  <!-- hotsearch-item -->
  <div class="hotsearch-list">
    <div class="item-left">
      <ul class="hotsearch-item-left">
        <li>
          <span class="span-index1">1</span>美国将六家中国媒体列为外国使团<span class="first-child-span">新</span>
        </li>
        <li>
          <span class="span-index2">2</span>特朗普曾在中国缴税?中方回应
          <span class="last-child-span">热</span>
        </li>
        <li>
          <span class="span-index3">3</span>蒙古国捐赠的首批活羊22日入境
        </li>
      </ul>
    </div>
    <div class="item-right">
      <ul class="hotsearch-item-right">
        <li><span>4</span>19岁小伙骑行2300公里上大学</li>
        <li><span>5</span>央视呼吁禁止虐动物尽快立法</li>
        <li><span>6</span>婺源鸳鸯湖迎今年首批越冬鸳鸯</li>
      </ul>
    </div>
  </div>
</body>

</html>